<template>
	<view :style="theme">
		<Curriculum ref="curriculumRef" :returnShow="returnShow" />
	</view>
</template>

<script>
	import Curriculum from "@/components/tab/curriculum.vue";
	export default {
		components: {
			Curriculum
		},
		data() {
			return {
				returnShow: true
			}
		},
		onLoad(ops) {
			if (ops.teacherId) {
				this.$refs.curriculumRef.tabclick({
					index: 1,
					onTeach: [ops.teacherId]
				})
			} else {
				this.$refs.curriculumRef.tabclick({
					index: 0
				})
			}
		},
		methods: {
			jump(url, params, a) {
				this.$app.jump(url, params, a);
			},
			jump2(url, params, a) {
				this.$app.jump2(url, params, a);
			},
		},
		onReachBottom() {
			uni.$emit('onReachBottom');
		}

	}
</script>